package com.dss.auto_deploy.enums;

/**
 * @Description:
 * @author: dongshoushan
 * @date: 2022年06月16日 13:49
 */
public enum DockerDeployStatusEnum implements BaseEnum {

    INIT(0, "空闲"),
    BUILDING(1, "编译中"),
    MAVEN_SUCCESS(2, "maven编译成功"),
    UPLOAD(3, "代码上传"),
    BUILD_IMAGE(4, "镜像构建中"),
    BUILD_IMAGE_SUCCESS(5, "镜像构建完毕"),
    PUSH(6, "push成功待拉取"),
    PULL(7, "拉取镜像成功"),
    START_NEW_CONTAINER(8, "开始创建新容器"),
    START_SUCCESS(9, "启动成功"),
    MAVEN_FAILED(10, "maven编译失败"),
    DOCKER_FAILED(11, "docker部署失败"),
    ;

    private Integer code;
    /**
     * 描述信息
     */
    private String desc;

    DockerDeployStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
